/**
 * 
 */
package com.yuedao.sender.service;

import java.util.List;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Service;

import com.yuedao.sender.model.OperateLogout;


/**
 * @author Administrator
 *
 */
@Service
public interface OperateLogoutRepository extends JpaRepository<OperateLogout, Integer> {
	List<OperateLogout> findBySendFlag (int flag);
	
	 @Query(value = "SELECT count(o.id) from operate_logout o where o.vehicle_no=?1", nativeQuery = true)
	  Integer isExitVehice1(String vehicleNo);
}
